﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminLogin.aspx.cs" Inherits="AdminLogin" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>DIS Accounts:Login</title>
    <link href="Styles/accounts.css" rel="stylesheet" type="text/css" />
     <style type="text/css">
        #outer{min-height:100%;height:auto; clear:both;}
        * html #outer{height:100%; background-color:#8b8b8b;}
        * {
            padding: 0;
            margin: 0;
          }
          .buttonlogin
           {
               background:transparent url('Images/login/logbutton.jpg') repeat-x top;
               border:0;
               width:70px;
               height:30px;
               font-weight:bold;
               color:White;
               font-size:12px;
           }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="SCM" runat="server" EnablePartialRendering="true">
    </asp:ScriptManager>
    <table style="width: 100%; height: 100%; position: absolute;" cellpadding="0" cellspacing="0">
        <tr style="background-image: url('Images/top1.jpg'); background-color: #419519; background-repeat: repeat-x;
            width: 100%; height: 6%;">
            <td colspan="3">
                <img src="Images/logo.jpg" style="height: 40px; margin-left: 15px;" />
            </td>
        </tr>
        <tr style="background-image: url('Images/background.jpg'); background-color: #85b86d;
            background-repeat: repeat-x; width: 100%; height: 80%; vertical-align: top;">
            <td style="width: 10%; padding-left: 20px; padding-top: 50px;">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>                         
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 2%;">
                &nbsp;
            </td>
            <td style="width: 30%; padding-left: 40px; padding-top: 50px; color: White; font-family: Verdana; font-size: 15px; font-weight: bold"> 
                <img src="Images/login/adminlog.png" />
                <div>
                
                    <asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate" FailureText="Login Failed!"
                        Font-Size="X-Small">
                        <LayoutTemplate>
                            <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;
                                border: 1px solid #b2e798; height: 200px; width: 350px; background-image: url('Images/login/bg2.jpg');
                                background-repeat: repeat-x">
                                <tr>
                                    <td>
                                        <table border="0" cellpadding="0" style="margin-left: 20px;">
                                           <tr>
                                                <td colspan="2" align="center" style="font-size:13px;">
                                                    <asp:Label ID="LblMsg" runat="server" CssClass="false"></asp:Label>
                                               </td>
                                                <caption>
                                                    <br />
                                                </caption>
                                           </tr>
                                           
                                           <tr>
                                                <td align="right">
                                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Style="color: #ffffff;
                                                        font-family: Verdana; font-size: 13px; font-weight: bold;">
                                                            User Name:
                                                    </asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="UserName" runat="server" CssClass="input" Width="150" MaxLength="50"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                        ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Style="color: #ffffff;
                                                        font-family: Verdana; font-size: 13px; font-weight: bold;">Password:</asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="input" Width="150"
                                                        MaxLength="50"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2" >
                                                    <asp:Label ID="FailureText" runat="server" CssClass="false"  EnableViewState="False"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" CssClass="buttonlogin"
                                                        ValidationGroup="Login1" onclick="LoginButton_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </LayoutTemplate>
                    </asp:Login>
                </div>
            </td>
        </tr>
        <tr style="background-image: url('Images/login/footer.jpg'); background-color: #336b3e;
            background-repeat: repeat-x; width: 100%; height: 5%;">
            <td align="right" colspan="3" style="padding-right: 10px; font-size: 13px; color: White;
                padding-top: 5px; height: 40px; margin-top: 1px;">
                Copyright &copy; Digital Info Solutions Pvt. Ltd.
            </td>
        </tr>
    </table>

    <script language="javascript" type="text/javascript">
//            window.onload = function() {
//                document.getElementById("LoginUser_UserName").focus();
//            }
    </script>

    </form>
</body>
</html>
